<%= render 'spree/admin/shared/audit_nav' %>

<% content_for :page_actions do %>
  <%= render_admin_partials(:exports_actions_partials) %>
<% end %>

<%= render_admin_partials(:exports_header_partials) %>

<div class="card-lg">
  <% if @collection.any? %>
    <div class="table-responsive">
      <table class="table">
        <thead>
          <tr>
            <th scope="col"><%= Spree.t(:number) %></th>
            <th class="text-center"><%= Spree.t(:kind) %></th>
            <th class="text-center"><%= Spree.t(:status) %></th>
            <th scope="col"><%= Spree.t(:user) %></th>
            <th scope="col"><%= Spree.t(:filename) %></th>
            <th scope="col"><%= Spree.t(:date) %></th>
            <th scope="col"><%= Spree.t(:size) %></th>
            <th class="text-center"><%= Spree.t(:download) %></th>
          </tr>
        </thead>
        <tbody>
          <%= render partial: 'export', collection: @collection, cached: true %>
        </tbody>
      </table>
      <%= render 'spree/admin/shared/index_table_options', collection: @collection %>
    </div>
  <% else %>
    <%= render 'spree/admin/shared/no_resource_found', new_object_url: nil %>
  <% end %>
</div>
